package com.example.mydata;

import io.swagger.annotations.Api;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableCaching
@Api
@ComponentScan("com.example.mydata")
@MapperScan("com.example.mydata.Mapper") // 指定 Mapper 接口所在的包路径
public class datapplication {
    public static void main(String[] args) {
        SpringApplication.run(datapplication.class, args);
    }
}
